﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Entity;

namespace ef_CodeFirst.Controllers
{
    /// <summary>
    /// Controller基类
    /// </summary>
    public class BaseController : System.Web.Mvc.Controller
    {
        public BaseController()
        {
            this.PageSize = 10;
        }
        /// <summary>
        /// 数据统一操作对象
        /// 子类根据自己的具体需要进行创建
        /// </summary>
        //  protected ef.IRepositoryGeneric _iRepository { get; set; }
        /// <summary>
        /// 用户操作权限
        /// </summary>
        protected int UserOperatorRole { get; set; }
        /// <summary>
        /// 当前登陆的用户ID
        /// </summary>
        protected long Current_UserID { get; set; }
        /// <summary>
        /// 条件构造
        /// </summary>
        protected VCommons.Entity.VPredication vp { get; set; }
        /// <summary>
        /// 分页构造
        /// </summary>
        protected VCommons.Entity.PagingParam pp { get; set; }
        /// <summary>
        /// 页数
        /// </summary>
        protected virtual int PageSize { get; set; }
    }


}